package com.yang.aiDoctor.service;

import com.yang.aiDoctor.bean.ChatRecord;
import com.yang.aiDoctor.utils.ChatTypeEnum;
import org.springframework.ai.chat.model.ChatResponse;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

import java.util.List;
@Service
public interface ChatRecordService {

    public void saveChatRecord(String userName, String message, ChatTypeEnum chatType);

    public List<ChatRecord> getChatRecordList(String userName);

    public List<String> aiChatStream2(String userName, String message);

    public Flux<ChatResponse> aiChatStream(String userName, String message);


}
